<%@page import="java.util.regex.Matcher"%>
<%@page import="java.util.regex.Pattern"%>
<%@ page contentType="text/html;charset=UTF-8" %><%

out.println("request.getServletPath():"+request.getServletPath());
out.println("request.getRequestURI():"+request.getRequestURI());
out.println("request.getRequestURL():"+request.getRequestURL());

 try {
	 
	 out.print("<br><br><br><br>");
	 out.print("sdf*iduf".replaceAll("\\*", "____"));
	out.print("<br><br><br><br>");
	 
	String[] a="1111sdfdsfds* ".split("\\*");
	out.println("a[0]"+a[0]);
	out.println("a[1]"+a[1]);
   
   out.print("<br><br><br><br>a:");
   out.print(request.getParameter("a"));
   out.print("<br><br><br><br><br><br><br><br>2222222222<br>b:");
   out.print(request.getParameter("b"));
   
   
   //out.print("2222<br><br><br><br>a:");
   
   //String REGEX="<[^<>]*script[^<>]*>[^<>]*<[^<>]*/script[^<>]*>";
   //Pattern XSS_PATTERN = Pattern.compile(REGEX,Pattern.CASE_INSENSITIVE|Pattern.MULTILINE);
   //String s="fdsfsdf<script>alerdsfdsf</script>";
   //Matcher m=XSS_PATTERN.matcher(s);
   
   //out.print(s.replaceAll(REGEX, "___"));
   
 }
 catch (Exception ex) {
   System.err.println("error"+ex);
 }
%>
<form>
<input name="a"  value="" >
<textarea name="b" cols="50" rows="8"></textarea>
<input type="submit" name="safd" value="sldf">
</form>